//
//  WPTreamentInstructionFootView.m
//  wobingwoyi
//
//  Created by WGP on 2016/12/5.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPTreamentInstructionFootView.h"

@interface WPTreamentInstructionFootView ()

@property(nonatomic,strong)UIImageView *lineImageView;

@end
@implementation WPTreamentInstructionFootView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        [self lineImageView];
        
        self.timeLabel.text = @"症状时间:";
        [self.timeLabel mas_updateConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.topView).offset(20);
        }];
        self.topLineView.hidden = YES;
    }
    return self;
}

-(UIImageView *)lineImageView
{
    if (_lineImageView == nil)
    {
        _lineImageView = [[UIImageView alloc] init];
        _lineImageView.backgroundColor = GlobalColor;
        [self.topView addSubview:_lineImageView];
        
        [_lineImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.topView).offset(10);
            make.width.mas_equalTo(1);
            make.height.mas_equalTo(24);
            make.centerY.equalTo(self.topView);
        }];
    }
    return _lineImageView;
}

@end
